PROJECT_NAME="nano_chatRoom"
EXE_NAME="ChatRoom"

PWD=`pwd`
BIN_PATH=$PWD/bin
SOURCE_PATH=$PWD/src


function build(){
	echo 正在编译 $SOURCE_PATH/*.go
	go build -o $BIN_PATH/$EXE_NAME $SOURCE_PATH/*.go
	echo 编译完成
}

function clean(){
	echo 正在执行 go clean
	go clean
	echo 正在删除 $BIN_PATH/$EXE_NAME
	rm -f $BIN_PATH/$EXE_NAME
	echo clean 完成
}

case $1 in
	clean)
		clean
		;;
	build)
		build
		;;
esac
